{%include file="header.html"%}
<style>
td {font-weight: bold;}
.firtd {	width: 100px;	padding-right: 12px;	text-align: right;}
textarea {	width: 300px;	height: 100px;}
.button{ width:82px; height:32px; font-size:12px;}
.span{width: 120px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>编辑支付方式</h3>
  </div>
</div> 
<div class="fixed_bottom">
	<form method="post" action="payment.php" id="aspnetForm" name="form1">
       <table cellpadding="0" cellspacing="0" class="table tb-type2">
      	  <tbody>
      	  	<tr>
    			<td class="firtd">支付方式名称 :</td>
    			<td><input name="pay_name" type="text" value="{%$pay.pay_name|escape%}" size="40" /></td>
  			</tr>
  			<tr>
    			<td class="firtd">支付方式描述 :</td>
    			<td ><textarea name="pay_desc" cols="50" rows="8" style="height:120px">{%$pay.pay_desc|escape%}</textarea></td>
 		    </tr>
            {%foreach from=$paycon item=con key=key%}
            <tr>
    			<td class="firtd">
       			{%$con.name%}
                </td>
    			<td>
                {%if $con.type == "text"%} 
              <input name="cfg_value[]" type="{%$con.type%}" value="{%$con.value%}" size="40" /><br />
               {%elseif $con.type == "select"%} 
              <select name="cfg_value[]" style="width:250px"> 
               <option value="0" {%if $con.value=='0'%}selected=selected{%/if%}> 使用标准双接口</option>
               <option value="1" {%if $con.value=='1'%}selected=selected{%/if%}>使用担保交易接口</option>
               <option value="2" {%if $con.value=='2'%}selected=selected{%/if%}>使用即时到账交易接口</option>
              </select><br />
              <p style="font-size:12px;color:#666;font-weight:100"> 请选择您最后一次跟支付宝签订的协议里面说明的接口类型 </p>
              {%/if%}
              <input name="cfg_name[]" type="hidden" value="{%$con.name%}" />
      		  <input name="cfg_type[]" type="hidden" value="{%$con.type%}" />
                </td>
  			</tr>
            {%/foreach%}
            <tr>
    			<td class="firtd">支付手续费 :</td>
    			<td><input name="pay_fee" type="text" value="{%$pay.pay_fee|escape%}" size="40" /></td>
  			</tr>
  <tr>
    <td class="firtd">货到付款 :</td>
    <td>{%if $pay.is_cod == "1"%}是{%else%}否{%/if%}</td>
  </tr>
  <tr>
    <td class="firtd">在线支付 :</td>
    <td>{%if $pay.is_online == "1"%}是{%else%}否{%/if%}</td>
  </tr>
  <tr>
  <td >&nbsp;</td>
    <td colspan="2">
      <input type="hidden"  name="pay_id"       value="{%$pay.pay_id%}"/>
      <input type="hidden"  name="pay_code"     value="{%$pay.pay_code%}"/>
      <input type="hidden"  name="is_cod"       value="{%$pay.is_cod%}"/>
      <input type="hidden"  name="is_online"    value="{%$pay.is_online%}" />
      <input type="hidden"  name="act"    value="Submit" />
      
      <input  type="submit" class="button" name="Submit" value="确定" />
      <input   type="reset" class="button"  name="Reset"        value="重置" />
    </td>
  </tr>
      	  
   </tbody>
  </table>
   </form>
</div>
</body>
</html>